package br.urca.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "habilita")
public class Habilitacao implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@EmbeddedId
	private HabilitacaoPK id;
	
	@Column(name = "descr")
	private String descricao;
	
	public Habilitacao() { }

	public Habilitacao(HabilitacaoPK id, String descricao) {
		super();
		this.id = id;
		this.descricao = descricao;
	}

	public HabilitacaoPK getId() {
		return id;
	}

	public void setId(HabilitacaoPK id) {
		this.id = id;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	
}
